package day2;

/**
 * @author oldliu
 * @since 1.0
 */
public class StrTest4 {
    public static void main(String[] args) {
        String str="课工场java76 is very good";
        int p = str.indexOf('工',14);
        System.out.println(p);

        String s2 = str.substring(5);
        System.out.println(s2);
        String s3 = str.substring(5, 9);
        System.out.println(s3);
        boolean f=str.endsWith("good");
        System.out.println(f);
    }
}
